#include "mybutton.h"

Mybutton::Mybutton(Myvideowidget * myvideo) {
	video = myvideo;
}

void Mybutton::slotClicked() {
	if(!this->video->isFullScreen())
		this->video->setFullScreen(true);
}

void Mybutton::mousePressEvent(QMouseEvent* event)
{
	emit clicked();
	slotClicked();
}
